import axios from 'axios'
import { message } from 'ant-design-vue'

const service = axios.create({
    baseURL: '',
    timeout: 5000
})

service.interceptors.request.use(function (res) {
    return res;
}, function (res) {
    return Promise.reject(res)
})


service.interceptors.response.use(function (response) {
    message.info('返回了请求')
    return response
}, function (error) {

    return Promise.reject(error)
})

export default service